#!/usr/bin/env node

const log = console.log;
var timer1 = setInterval(function(){log('111');},500);
setTimeout(function(){
    clearTimeout(timer1);
    for(var i = 0 ;i < 5;i++){
        (function(i){
            setTimeout(function(){log('222');},500*i);
        })(i);
    }
},5000);

